/* * Generated configuration file, do not edit. * uiGenerator v2.52 * Copyright © 2002-2004 Ubicom Inc. . All rights reserved. */ function createDataObjectFromBinaryArray (initial) { if (initial) createDataObject(); var d = data; i = 0; // global, accessed by the s*() functions d.lan_network_address=sX(); d.lan_subnet_mask=sX(); d.wan_ip_address=sX(); d.wan_subnet_mask=sX(); d.log_level_critical=sU(1); d.log_level_info=sU(1); d.log_level_warning=sU(1); d.log_opt_firewall=sU(1); d.log_opt_status=sU(1); d.log_opt_system=sU(1); d.log_syslog_addr=sX(); d.log_to_syslog=sU(1); d.log_sched_name=sS(16); d.smtp_email_addr=sS(35); for (var i1=0; i1<32; i1++) { d.sched_table[i1].enabled=sU(1); d.sched_table[i1].end_time=sU(4); d.sched_table[i1].sched_name=sS(16); d.sched_table[i1].start_time=sU(4); d.sched_table[i1].used=sU(1); d.sched_table[i1].weekdays=sU(1); } d.smtp_email_enabled=sU(1); } function createBinaryArrayFromDataObject() { byte_array = new Array; // global, accessed by the g*() functions var d = data; gX(d.lan_network_address); gX(d.lan_subnet_mask); gX(d.wan_ip_address); gX(d.wan_subnet_mask); gU(d.log_level_critical,1); gU(d.log_level_info,1); gU(d.log_level_warning,1); gU(d.log_opt_firewall,1); gU(d.log_opt_status,1); gU(d.log_opt_system,1); gX(d.log_syslog_addr); gU(d.log_to_syslog,1); gS(d.log_sched_name,16); gS(d.smtp_email_addr,35); for (var i1=0; i1<32; i1++) { gU(d.sched_table[i1].enabled,1); gU(d.sched_table[i1].end_time,4); gS(d.sched_table[i1].sched_name,16); gU(d.sched_table[i1].start_time,4); gU(d.sched_table[i1].used,1); gU(d.sched_table[i1].weekdays,1); } gU(d.smtp_email_enabled,1); return byte_array; } function naturalizeDataObject() { var d = data; for (var i1=0; i1<32; i1++) { d.sched_table[i1].end_time=naturalize(d.sched_table[i1].end_time); d.sched_table[i1].start_time=naturalize(d.sched_table[i1].start_time); d.sched_table[i1].used=naturalize(d.sched_table[i1].used); d.sched_table[i1].weekdays=naturalize(d.sched_table[i1].weekdays); } }